package org.springframework.learn.beans.note.annotationUtils;

import org.springframework.core.annotation.AnnotatedElementUtils;
import org.springframework.core.annotation.AnnotationAttributes;
import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.transaction.annotation.Transactional;

/**
 * Description
 * Copyright © 启明星辰 版权所有
 *
 * @author chenjiquan
 * @date 2024-09-05
 */
public class AnnotationUtilsNote {
	public static void main(String[] args) {
		AnnotationUtils.isCandidateClass(AnnotationUtilsNote.class, Transactional.class);

		// 解析AnnotationUtilsNote.class的@Transactional注解属性
		AnnotationAttributes attributes = AnnotatedElementUtils.findMergedAnnotationAttributes(
				AnnotationUtilsNote.class, Transactional.class, false, false);
	}
}
